package cn.com.v2.util;

import java.io.IOException;
import java.io.InputStream;

public class FileUtil {

    public static byte[] getBytes(InputStream is) throws IOException {
        int available = is.available();
        byte[] bytes = new byte[available];
        is.read(bytes);
        return bytes;
    }
}
